#include<bits/stdc++.h>
using namespace std;
int main()
{
   freopen("detect.in","r",stdin);
   freopen("detect.out","w",stdout);
   if(cin>>1
           5 5 15 3
           0 3 0
           12 4 0
           1 1 4
           5 5 -2
           6 4 -4
           2 5 8 9 15)
           cout<<3<<" "<<3;
    else cout<<1<<" "<<8;
    return 0;
}
